/* --------------------------------------------------------
 * Copyright (c) aeky , Inc.  All rights reserved.
 * --------------------------------------------------------
 */
package com.aeky.decorator.condiment;

import com.aeky.decorator.beverage.Beverage;

/**
 * 调料B
 * 
 * @author aeky
 */
public class CondimentB extends CondimentDecorator {

    private Beverage beverage;

    public CondimentB(Beverage beverage) {
        this.beverage = beverage;
    }

    /*
     * 
     * @see com.aeky.decrator.beverage.Beverage#cost()
     */
    @Override
    public double cost() {
        return 0.1;
    }

    /*
     * 
     * @see com.aeky.decrator.condiment.CondimentDecorator#getDescription()
     */
    @Override
    public String getDescription() {
        return beverage.getDescription() + "_" + "condimentB";
    }

}
